package cn.buk.tms.hotel.sc;

import cn.buk.common.sc.Page;

import java.util.Date;


/**
 * @author yfdai
 */
public class HotelSearchCriteria {

    private int cityId;

    private int hotelId;

    private Date checkInDate;

    private Date checkOutDate;

    private int roomCount;

    private int guestCount;

    private String hotelName="";


    /**
     * 商圈名称
     * businessDistrictId==0,则用名称和cityId去查找
     */
    private String businessDistrict;

    /**
     * 商圈id
     */
    private int businessDistrictId;

    /**
     * 行政区名称
     * 如果districtId==0,则用名称和cityId去查找
     */
    private String district;

    /**
     * 行政区id
     */
    private int districtId;

    /**
     * 酒店星级
     */
    private int hotelStar;

    /**
     * 是否含早：
     * 1 - 含早
     */
    private Integer breakfast;

    /**
     * 酒店类型：
     * 0-落地酒店，
     * 3-透传酒店
     */
    private int hotelType;

    private Page page = new Page();


    public void setPageNo(int pageNo) {
        this.page.setPageNo(pageNo);
    }

    public void setPageSize(int pageSize) {
        this.page.setPageSize(pageSize);
    }


    public Page getPage() {
        return page;
    }

    public void setPage(Page page) {
        this.page = page;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public String getHotelName() {
        return hotelName;
    }

    public void setHotelName(String hotelName) {
        this.hotelName = hotelName;
    }

    public Date getCheckInDate() {
        return checkInDate;
    }

    public void setCheckInDate(Date checkInDate) {
        this.checkInDate = checkInDate;
    }

    public Date getCheckOutDate() {
        return checkOutDate;
    }

    public void setCheckOutDate(Date checkOutDate) {
        this.checkOutDate = checkOutDate;
    }

    public int getRoomCount() {
        return roomCount;
    }

    public void setRoomCount(int roomCount) {
        this.roomCount = roomCount;
    }

    public int getGuestCount() {
        return guestCount;
    }

    public void setGuestCount(int guestCount) {
        this.guestCount = guestCount;
    }

    public String getBusinessDistrict() {
        return businessDistrict == null ? "": businessDistrict.trim();
    }

    public void setBusinessDistrict(String businessDistrict) {
        this.businessDistrict = businessDistrict;
    }

    public int getHotelStar() {
        return hotelStar;
    }

    public void setHotelStar(int hotelStar) {
        this.hotelStar = hotelStar;
    }


    public String getDistrict() {
        return district == null ? "": district.trim();
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public int getDistrictId() {
        return districtId;
    }

    public void setDistrictId(int districtId) {
        this.districtId = districtId;
    }

    public int getBusinessDistrictId() {
        return businessDistrictId;
    }

    public void setBusinessDistrictId(int businessDistrictId) {
        this.businessDistrictId = businessDistrictId;
    }

    public int getHotelType() {
        return hotelType;
    }

    public void setHotelType(int hotelType) {
        this.hotelType = hotelType;
    }

    public int getBreakfast() {
        return breakfast == null ? 0 : breakfast;
    }

    public void setBreakfast(Integer breakfast) {
        this.breakfast = breakfast;
    }

    public int getHotelId() {
        return hotelId;
    }

    public void setHotelId(int hotelId) {
        this.hotelId = hotelId;
    }
}
